<div class="modal-body">
  <div class="modal-header">
    <h2 class="modal-header-title">
      <icon name="'folder-plus'" size="'lg'"></icon>
      <span class="p-l-1">Choose Dashboard Folder</span>
    </h2>

    <a class="modal-header-close" ng-click="ctrl.dismiss();">
      <icon name="'times'"></icon>
    </a>
  </div>

  <form name="ctrl.saveForm" ng-submit="ctrl.save()" class="modal-content folder-modal" novalidate>
    <p>Move the {{ctrl.dashboards.length}} selected dashboards to the following folder:</p>

    <div class="p-t-2">
      <div class="gf-form">
        <folder-picker
          on-change="ctrl.onFolderChange"
          label-class="width-7"
          enable-create-new="true"
          folder="ctrl.folder"
        >
        </folder-picker>
      </div>
    </div>
    <div class="gf-form-button-row text-center">
      <button
        type="submit"
        class="btn btn-primary"
        ng-disabled="ctrl.saveForm.$invalid || !ctrl.isValidFolderSelection"
      >
        Move
      </button>
      <a class="btn-text" ng-click="ctrl.dismiss();">Cancel</a>
    </div>
  </form>
</div>
